home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 June / SGI Freeware 1998 June.iso / dist / fw_UMINNgopher.idb / usr / freeware / src / gopher_1.12 / gopherd / Makefile.z / Makefile
Makefile  |  1997-09-09  |  3KB  |  121 lines

  1. #********************************************************************
  2. # $Author: drich $
  3. # $Revision: 1.1 $
  4. # $Date: 1995/10/03 04:08:20 $
  5. # $Source: /proj/freeware1.0/gopher1.12/src/gopherd/RCS/Makefile,v $
  6. # $Status: $
  7. #
  8. # Paul Lindner, University of Minnesota CIS.
  9. #
  10. # Copyright 1991, 1992 by the Regents of the University of Minnesota
  11. # see the file "Copyright" in the distribution for conditions of use.
  12. #********************************************************************
  13. # MODULE: Makefile
  14. # Makefile for gopher server
  15. #*********************************************************************
  16. # Revision History:
  17. # $Log: Makefile,v $
  18. # Revision 1.1  1995/10/03  04:08:20  drich
  19. # gopher 1.2 check-in
  20. #
  21. # Revision 1.3  1992/12/21  20:44:37  lindner
  22. # Added kernutils.o to OBJS (from mtm)
  23. #
  24. # Revision 1.2  1992/12/21  20:21:49  lindner
  25. # Added ../bin/libftw.a to WAISGATEOBJS..
  26. #
  27. # Revision 1.1  1992/12/10  23:15:15  lindner
  28. # gopher 1.1 release
  29. #
  30. #
  31. #********************************************************************/
  32. include ../Makefile.config
  33.  
  34. #
  35. # Type of full-text searching to use....  WAIS
  36. # requires that you have a built wais distribution.
  37. #
  38. # Next requires that you have the NeXTtext.tar.Z libraries.
  39. #
  40.  
  41. LIBS    = $(SERVERLIBS)
  42.  
  43. NEXTLIBS    = -ltext -lbtree
  44.  
  45.  
  46. #############################################################################
  47.  
  48. NEXTOBJ = NeXTindex.o
  49.  
  50. WAISGATEOBJ = ../ui/source.o ../bin/libftw.a
  51.  
  52. WAISOBJ = ../bin/inv.a  ../bin/wais.a ../bin/client.a $(WAISGATEOBJ)
  53.  
  54. CCFLAGS    = $(OPT) -DDATA_DIRECTORY=\"$(SERVERDATA)\" \
  55.     -DDOMAIN_NAME=\"$(DOMAIN)\" \
  56.     -DGOPHER_PORT=$(SERVERPORT) \
  57.     $(SEARCH) \
  58.     $(SERVEROPTS) \
  59.     $(GSYSTYPE) \
  60.     $(INCLUDES)
  61.  
  62. OBJS    = error.o globals.o gopherd.o daemon.o special.o \
  63.     dedot.o openers.o index.o Waisindex.o serverutil.o ftp.o \
  64.     waisgopher.o ext.o site.o gopherdconf.o kernutils.o
  65.  
  66. TARGET    = gopherd
  67.  
  68. all:
  69.     (cd ..; $(MAKE) $(MFLAGS) server)
  70.  
  71. #
  72. # Special rule for NeXT text indexing.
  73. #
  74. NeXTindex.o : NeXTindex.c
  75.     $(CC) $(CCFLAGS) -ObjC -I. -c NeXTindex.c
  76.  
  77.  
  78. #
  79. # Special rule for wais gateway
  80. #
  81. waisgopher.o: waisgopher.c
  82.     $(CC) $(CCFLAGS) -c waisgopher.c
  83.  
  84. gopherd.o: gopherd.c
  85.     $(CC) $(CCFLAGS) -DCONF_FILE=\"$(SERVERDIR)/gopherd.conf\" -c gopherd.c
  86.  
  87.  
  88. .c.o:
  89.     $(CC) $(CCFLAGS) -c $<
  90.  
  91. globals.o : globals.h
  92.  
  93. $(OBJS) : ../conf.h
  94.  
  95.  
  96. next: $(OBJS) $(NEXTOBJ)
  97.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(DLOBJS) \
  98.         $(LIBS) $(NEXTLIBS)
  99.  
  100. wais: $(OBJS)
  101.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(WAISOBJ) $(DLOBJS) $(LIBS)
  102.  
  103. nextwais: $(OBJS) $(NEXTOBJ)
  104.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(NEXTOBJ) $(LIBS) \
  105.         $(WAISOBJ) $(DLOBJS) $(NEXTLIBS)
  106.  
  107. none: $(OBJS)
  108.     $(CC) $(LDFLAGS) -o $(TARGET) $(OBJS) $(DLOBJS) $(LIBS)
  109.  
  110. install : all
  111.     -mv $(SERVERDIR)/$(TARGET) $(SERVERDIR)/$(TARGET).old
  112.     $(INSTALL) -c $(TARGET) $(SERVERDIR)
  113.     $(INSTALL) -c gopherd.conf $(SERVERDIR)
  114.     -rm    $(SERVERDIR)/gopherls $(SERVERDIR)/gindexd
  115.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gopherls
  116.     -ln     -s $(SERVERDIR)/$(TARGET) $(SERVERDIR)/gindexd
  117.  
  118. clean:
  119.     -rm -f $(TARGET) $(OBJS) $(NEXTOBJ) *.out *~ core
  120.  
  121.